package com.itany.mall.service;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.itany.mall.entity.Order;
import com.itany.mall.entity.OrderDetail;
import com.itany.mall.exception.OrderNotFoundException;
import com.itany.mall.exception.ServiceException;

public interface OrderService {

	void commitOrder(Collection<OrderDetail> shopingCart) throws ServiceException;

	List<Order> findMyOrders(long userId) throws ServiceException;

	Map<Order, List<OrderDetail>> findDetailsByOrderNum(String num, long userId)
			throws OrderNotFoundException, ServiceException;

}
